Skip to content

Improve typed path by disallowing deprecated variable definitions#3618

Open
tcanabrava wants to merge 3 commits intotokio-rs:mainfrom
tcanabrava:improve_vpath
Open

Improve typed path by disallowing deprecated variable definitions#3618
tcanabrava wants to merge 3 commits intotokio-rs:mainfrom
tcanabrava:improve_vpath

Conversation

@tcanabrava
Copy link
Contributor

I was staring at my old toy project in axum, and aparently my paths are now deprecated, and hit a runtime assert, instead of a compile assert.
So, I improved the vpath! macro to make sure we catch those earlier.

@tcanabrava
Copy link
Contributor Author

ping?

Copy link
Collaborator

@yanns yanns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@yanns
Copy link
Collaborator

yanns commented Mar 16, 2026

Could you add a changelog entry: https://github.com/tokio-rs/axum/blob/main/axum-extra/CHANGELOG.md ?

@tcanabrava
Copy link
Contributor Author

sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants